package com.lixy.demo.spring4_highlight.ch1.javaconfig;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {

	public static void main( String[] args ) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext( JavaConfig.class );
		UseFunctionService service = context.getBean( UseFunctionService.class );
		System.out.println( service.sayHello( "Java Config" ) );
		context.close();
	}
	
}
